POV-Ray : Newsgroups : povray.unofficial.patches : A question on image_width : Re: A question on image_width Server Time
2 Sep 2024 04:12:48 EDT (-0400)
  Re: A question on image_width  
From: Mr  Art
Date: 19 May 2000 00:56:16
Message: <3924C902.AEAF39A9@gci.net>
Well, I tried this:

#version unofficial MegaPov 0.5;
#warning concat("Version Value is:",str(version,0,3),"\n")

The value printed was 3.100 in MegaPOV

Then I tried
#warning concat("Version Value is:",str(version,0,3),"\n")
in Official POV and got 3.100.

It didn't help.
Is there any way for the scene file to
recognize that it is on the official as opposed to MegaPOV?
Mr. Art

"Mr. Art" wrote:
> 
> Are the keywords image_width and image_height functions
> or variables? I had assumed that the values were set
> during the parse processes and made to be variables.
> So I tried this:
> #ifndef (image_width)
>      #declare image_width=4;
>      #declare image_height=3;
> #end
> 
> And got this
> error: undeclared identifier expected but float function
> 'image_width' found instead.
> 
> All the docs had said was they were keywords.
> 
> I had wanted to set the values if I were using
> Official POV. Is there any way to do this?
> Maybe with a check of version....
> 
> Think I found my answer. Thanks for listening.
> 
> Mr. Art


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.